package com.sscaipiao.android.adapter;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.sscaipiao.android.R;

public class MineSpinnerAdapter extends BaseAdapter {

	private List<String> mList;
	private Context mContext;
	
	 public MineSpinnerAdapter(Context pContext, List<String> pList) {
		 	        this.mContext = pContext;
			        this.mList = pList;
		 	    }
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		 LayoutInflater _LayoutInflater=LayoutInflater.from(mContext);
		 	        convertView=_LayoutInflater.inflate(R.layout.mine_spinner_item, null);
		 	        if(convertView!=null)
		 	        {
		 	            TextView _TextView1=(TextView)convertView.findViewById(R.id.mine_spinner_item_txt);
			            _TextView1.setText(mList.get(position));
		 	        }
		 	        return convertView;
	}

}
